package com.nengchuan.eic.nceconomy.constant;

import java.util.stream.Stream;

/**
 * 功能描述:
 *
 * @Author: liurui
 * @Date: 2020/4/28 0028 下午 3:08
 */

public enum SheetFormatEnum {


    XUHAO("序号", "0",""),
    GONGCHENGFEIYONG("工程或费用名称", "0",""),
    BIANZHIYIJU("编制依据", "0",""),
    WBSBIANMA("WBS编码", "0",""),
    SHEET3_YI("建筑单位工程汇总表（表三乙）", "0",""),
    SHEET3_JIA("安装单位工程汇总表（表三甲）", "0",""),
    SHEET3_BIN("架空输电线路工程单位工程汇总表（表三丙）", "0","");
    String name;
    String isRight;//是否向右顶格
    String isFold;//是否折叠

    SheetFormatEnum(String name, String isRight,String isFold) {
        this.name = name;
        this.isRight = isRight;
    }

    public String getName() {
        return name;
    }
    public String getIsRight() {
        return isRight;
    }
    public String getIsFold() {
        return isFold;
    }

    public  static  boolean isExist(String name){
        return Stream.of(SheetFormatEnum.values()).filter(x->x.getName().equals(name)).findFirst().isPresent();
    }

    public  static  boolean isFold(String name){
        return Stream.of(SheetFormatEnum.values()).filter(x->x.getName().equals(name)).findFirst().isPresent();
    }

}
